package com.functest.orm

/**
 * @author: DavydovMD
 * Date: 25.04.13
 * Time: 15:51
 */
enum JoinType {
    INNER, LEFT_OUTER, RIGHT_OUTER

    String getSql() {
        switch (this) {

            case JoinType.INNER:
                'inner'
                break;
            case JoinType.LEFT_OUTER:
                'left outer'
                break
            case JoinType.RIGHT_OUTER:
                'right outer'
                break
            default:
                throw new RuntimeException("Unknown join type:$this")
        }
    }

}
